<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class KanbanModules extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('kb_modules', function (Blueprint $table) {
            $table->increments('id');
            $table->integer("project_id")->comment("所属项目ID");
            $table->string('title',50)->comment("模块名称");
            $table->integer("creator_id")->comment("创建人ID");
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('kb_modules');
    }
}
